package com.dlry.db;

import java.util.List;

import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import com.dlry.entity.DlLeave;

public interface LeaveRepository extends JpaRepository<DlLeave, Long> {

	<S extends DlLeave> long count(Example<S> arg0);

	<S extends DlLeave> boolean exists(Example<S> arg0);

	<S extends DlLeave> Page<S> findAll(Example<S> arg0, Pageable arg1);

	<S extends DlLeave> S findOne(Example<S> arg0);

	Page<DlLeave> findAll(Pageable arg0);

	long count();

	void delete(DlLeave arg0);

	void delete(Iterable<? extends DlLeave> arg0);

	void delete(Long arg0);

	void deleteAll();

	boolean exists(Long arg0);

	DlLeave findOne(Long arg0);

	<S extends DlLeave> S save(S arg0);

	List<DlLeave> findAll();

	List<DlLeave> findAll(Sort sort);

	List<DlLeave> findAll(Iterable<Long> ids);

	<S extends DlLeave> List<S> save(Iterable<S> entities);

	void flush();

	<S extends DlLeave> S saveAndFlush(S entity);

	<S extends DlLeave> List<S> findAll(Example<S> example);

	<S extends DlLeave> List<S> findAll(Example<S> example, Sort sort);

}
